﻿import com.customine.skins.ICellRenderer;

import flash.filters.BlurFilter;

/**
 * @author colin
 */
class com.customine.skins.CustomineComboBoxCell extends MovieClip implements ICellRenderer {
	public var listOwner:MovieClip;
	public var owner:MovieClip;

	private var label : TextField;
	
	public function CustomineComboBoxCell(){
		_parent.bG_mc._alpha=0;
		
		_parent.tran_mc.blendMode = 'add';//'multiply';
		_parent.tran_mc.filters = [new BlurFilter(2,2,3)];
		debug();
	}
	
	public function getPreferredHeight() : Number {
		return 10;
	}

	public function getPreferredWidth() : Number {
		return 100;
	}

	public function setSize(width : Number, height : Number) {
	//	trace('cell set size');
	}

	public function setValue(suggested, item, selected:String) {
		label.text = suggested;
	}

	public function getCellIndex() : Object {//virtual
		return null;
	}

	public function getDataLabel() : String {//virtual
		return null;
	}

	private function debug(){
		for(var name in _parent.tran_mc){
			if(typeof(_parent.tran_mc[name])=='movieclip')trace(_parent.tran_mc[name]);
		}
	}
}